/* 
 * File:   JBuffers.h
 * Author: johnneyshi
 *
 * Created on 2013年3月4日, 上午10:16
 */

#ifndef JBUFFERS_H
#define	JBUFFERS_H
#include "JBuffer.h"
#include <vector>

class JBuffers {
public:
    JBuffers();
    virtual ~JBuffers();
    JBuffer* GetAvailableBuffer();
    //向fd发送数据
    static void Send(int fd,JBuffer* msgBuff);
private:
    std::vector<JBuffer*> pBuffers;
};

#endif	/* JBUFFERS_H */

